package com.du.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : DuJiabao
 * @Date : 2021/4/1 20:52
 * @Project : spring-mvc
 * @File : null.java
 * @Desc :
 */
@Controller
public class ViewController {
  /**
   * 自定义视图
   *
   * @return
   */
  @RequestMapping("/viewTest")
  public String viewTest() {
    System.out.println("testView...");
    return "helloView"; //与视图Bean对象的id一致
  }
}
